// 对象的解构

const obj = { name: 'zce', age: 18 };

// const { name } = obj
// console.log(name)

// const name = 'tom'
// const { name: objName } = obj
// console.log(objName)

// const name = 'tom'
// const { name: objName = 'jack' } = obj
// console.log(objName)

const { log } = console;
log('foo');
log('bar');
log('123');
